package com.example.thead;



/**
 * @author itheima
 */
public class ThreadLocalUtil {
    private static final ThreadLocal<Object> threadLocal = new ThreadLocal<>();

    /**
     * 设置
     */
    public static void set(Object object) {
        threadLocal.set(object);
    }

    /**
     * 获取
     */
    public static Object get() {
        return threadLocal.get();
    }

    /**
     * 清除
     */
    public static void remove() {
        threadLocal.remove();
    }
}
